package records

import (
	"github.com/golib/mysql"
)

const RecordNameCmsKnowledgeQuestion = "cms_knowledge_question"

func init() {
	var r = &CmsKnowledgeQuestion{}
	mysql.RegisterRecord(r.Name(), r)
}

type CmsKnowledgeQuestion struct {
	RelateId     int    `json:"relateId" form:"relateId" column:"relate_id" primary:"true" modify:"false"`
	QuestionId   int    `form:"questionId" column:"question_id" modify:"true" json:"questionId"`
	KnowId       int    `json:"knowId" form:"knowId" column:"know_id" modify:"true"`
	Score        int    `modify:"true" json:"score" form:"score" column:"score"`
	Status       int    `json:"status" form:"status" column:"status" modify:"true"`
	OnlineStatus int    `modify:"true" json:"onlineStatus" form:"onlineStatus" column:"online_status"`
	MainType     int    `json:"mainType" form:"mainType" column:"main_type" modify:"true"`
	CreateTime   string `json:"createTime" form:"createTime" column:"create_time" modify:"false"`
	UpdateTime   string `modify:"false" json:"updateTime" form:"updateTime" column:"update_time"`
}

func (r *CmsKnowledgeQuestion) Name() string {
	return RecordNameCmsKnowledgeQuestion
}
